Skip to content

Conversation

@jacksleight
Copy link
Contributor

@jacksleight jacksleight commented Jan 14, 2025

This PR adds empty and not empty filter options for the replicator, bard and grid fieldtypes:

Screenshot 2025-01-14 at 13 59 38

Edit:

I was about to add this to bard as well, and do another copy-paste, and then I realised these could just be added to textarea class that these three were already extending since it would work for text as well. But then I wasn't really sure if replicator extending textarea really makes sense in the first place? What do you think? Should they all use some kind of generic base class or just stick with textarea?

@jasonvarga
Copy link
Member

I don't think it makes sense for them to extend textarea.

Copy pasting a couple of arrays isn't the end of the world.

@jacksleight
Copy link
Contributor Author

jacksleight commented Jan 15, 2025

OK cool, I added the same for bard as well.

@jacksleight jacksleight changed the title [5.x] Add empty/not empty filters for replicator and grid [5.x] Add empty/not empty filters for replicator, bard and grid Jan 15, 2025
@jasonvarga jasonvarga merged commit d6382dc into statamic:5.x Jan 22, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants